#ifndef ZIGBUSMETEOTYPE_H
#define ZIGBUSMETEOTYPE_H

#include "ZigbusItem.h"

#define METEO_TYPE_SIZE 3
#define METEO_TYPE_UNDEFINED 0x00
#define METEO_TYPE_DHT11 0x01
#define METEO_TYPE_LM35DZ 0x02

class ZigbusMeteoType : public ZigbusItem
{
public:
    ZigbusMeteoType();
    ZigbusMeteoType(int value);
    ZigbusMeteoType(const QString& str);
    ZigbusMeteoType(const ZigbusMeteoType& other);
    virtual QString text() const;
    virtual ~ZigbusMeteoType() { }
    static ZigbusMeteoType UNDEFINED() { return ZigbusMeteoType(METEO_TYPE_UNDEFINED); }
    static ZigbusMeteoType LM35DZ() { return ZigbusMeteoType(METEO_TYPE_LM35DZ); }
    static ZigbusMeteoType DHT11() { return ZigbusMeteoType(METEO_TYPE_DHT11); }
    virtual QString type() const { return "meteo_type"; }
};

#endif // ZIGBUSMETEOTYPE_H
